#ifndef KZFQGRAPHICSLINEITEM_H
#define KZFQGRAPHICSLINEITEM_H

#include <QGraphicsLineItem>
#include <QGraphicsSceneMouseEvent>
#include <QObject>

class kzfQGraphicsLineItem : public QGraphicsLineItem
{

public:
    explicit kzfQGraphicsLineItem(QGraphicsLineItem *parent = nullptr);
    explicit kzfQGraphicsLineItem(const QLineF &line, QGraphicsItem *parent = nullptr);
    explicit kzfQGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2, QGraphicsItem *parent = nullptr);

protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
    void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override;
    void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override;
};

#endif // KZFQGRAPHICSLINEITEM_H
